<?php


// scripts
//echo $html->script('/admin/js/jquery_plugins/jquery.flash_message.js');
//echo $html->script('/admin/js/jquery_plugins/jquery.button.js');
//echo $html->script('/admin/js/automate/admin_index.js');

// list_container
//echo '<div class="list list_container">';

// list_caption
//echo '<div class="list_caption">' . $caption_for_layout . '</div>';

// list_buttons (admin_index_buttons.ctp)
//echo $this->controllerElement('admin_index_buttons');

// list_paginator (admin_index_paginator.ctp)
//echo $this->controllerElement('admin_index_paginator');

// list_filter (admin_index_filter.ctp)
//echo $this->controllerElement('admin_index_filter');

// list_records
echo '<div class="list_content list_records">';
function print_list_records($rows, &$View, &$line, $level = 0) {
	if (is_array($rows) && !empty($rows)) {
		foreach ($rows as $i => $row) {
			// list_record
			echo '<div class="list_record">';
			// list_record_parent
			echo '<div class="list_record_parent list_record_parent_' . (($line ++ % 2 === 0) ? 'even' : 'odd') . '">';
			// hidden_cells (admin_index_hidden_cells.ctp)
			echo $View->controllerElement('admin_index_hidden_cells', array('i' => $i, 'row' => $row, 'line' => $line, 'level' => $level, 'num_rows' => count($rows)));
			// left_cells (admin_index_left_cells.ctp)
			echo $View->controllerElement('admin_index_left_cells', array('i' => $i, 'row' => $row, 'line' => $line, 'level' => $level, 'num_rows' => count($rows)));
			// right_cells (admin_index_right1_cells.ctp)
			echo $View->controllerElement('admin_index_right1_cells', array('i' => $i, 'row' => $row, 'line' => $line, 'level' => $level, 'num_rows' => count($rows)));
			// right_cells (admin_index_right2_cells.ctp)
			echo $View->controllerElement('admin_index_right2_cells', array('i' => $i, 'row' => $row, 'line' => $line, 'level' => $level, 'num_rows' => count($rows)));
			// right_cells (admin_index_right3_cells.ctp)
			echo $View->controllerElement('admin_index_right3_cells', array('i' => $i, 'row' => $row, 'line' => $line, 'level' => $level, 'num_rows' => count($rows)));
			echo '</div>'; // end of list_record_parent
			// children
			if (isset($row['children']) && is_array($row['children']) && !empty($row['children'])) {
				// list_record_children
				echo '<div class="list_record_children">';
				print_list_records($row['children'], $View, $line, $level + 1);
				echo '</div>'; // end of list_record_children
			}
			echo '</div>'; // end of list_record
		}
	} else {
		// list_record
		echo '<div class="list_record">';
		// list_record_empty
		echo '<div class="list_record_empty">' . __('no_records', TRUE) . '</div>';
		echo '</div>'; // end of list_record
	}
}
$line = 1;
$level = 0;
print_list_records($rows, $this, $line, $level);
echo '</div>'; // end of list_records

// list_paginator (admin_index_paginator.ctp)
//echo $this->controllerElement('admin_index_paginator');

// list_buttons (admin_index_buttons.ctp)
//echo $this->controllerElement('admin_index_buttons');

//echo '</div>'; // end of list_container


?>